package rsb21424yhc.d1202YiChang;

public class Test02 {
    public static void main(String[] args) {
        Shape square = new Square();
        Shape circle = new Circle();
        try {
            System.out.println(square.getArea(2));
            System.out.println(circle.getArea(-3));
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }


    }
}

